package com.east.service.sale;

import com.east.bean.Company;
import com.east.utils.Pagenation;
import com.github.pagehelper.Page;

public interface CompanyService {
	/**
	 * 分页查询
	 * @param pagenation
	 * @param key
	 * @return
	 */
	Page<Company> findByPage(Pagenation pagenation ,String key,String ztype);
	
	/**
	 * 详情
	 * @param company
	 * @return
	 */
	Company  findByOne(Company company);
	/**
	 * 添加
	 * @param company
	 * @return
	 */
	boolean saveCompany(Company company);
	/**
	 * 修改
	 * @param company
	 * @return
	 */
	boolean updateCompany(Company company);
	/**
	 * 删除
	 * @param company
	 * @return
	 */
	boolean delCompany(Company company);
}
